//
//  ViewController.m
//  yxb
//
//  Created by kpkj-ios on 15/7/17.
//  Copyright (c) 2015年 kpkj-ios. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UILabel *myLb;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *myLbX;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *myLbY;
- (IBAction)btn:(id)sender;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *myLbW;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *myLbH;

@end

@implementation ViewController
@synthesize myLb;
@synthesize myLbX;
@synthesize myLbY;
- (void)viewDidLoad {
    [super viewDidLoad];

    myLb.backgroundColor=[UIColor redColor];

    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)btn:(id)sender {
    _myLbH.constant=30;
    _myLbW.constant=200;
    myLbY.constant=-200;
    myLbX.constant=100;
}
@end
